﻿@using BestTrader.Cms.ViewModels
@{
    ViewData["Title"] = "出金记录";
    var AgentManagers = ViewData["AgentManagers"] as List<ItemsDetailModel>;
}
<blockquote class="layui-elem-quote quoteBox">
    <form class="layui-form">
        @Html.AntiForgeryToken()
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="ordernumber" id="ordernumber" placeholder="订单号" autocomplete="off" class="layui-input searchVal" >
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="startdate" id="startdate" lay-verify="startdate" placeholder="开始时间" autocomplete="off" class="layui-input startdate" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="enddate" id="enddate" lay-verify="enddate" placeholder="结束时间" autocomplete="off" class="layui-input enddate" readonly>
            </div>
        </div>
        <div class="layui-input-inline">
            <div class="layui-input-inline">
                <select name="searchVal" class="searchVal" lay-filter="searchVal" lay-verify="required">
                    <option value="">订单状态</option>
                    <option value="1">付款通过</option>
                    <option value="2">付款失败</option>
                    <option value="0">没有回单</option>
                </select>
            </div>
        </div>
        <div class="layui-input-inline">
            <div class="layui-input-inline">
                <select name="searchManagerId" class="searchManagerId" lay-filter="searchManagerId" lay-verify="required">
                    <option value="">所有客户</option>
                    @foreach (var item in AgentManagers)
                    {
                        <option value="@item.ItemCode">@(item.ItemName)(@(item.ItemData))</option>
                    }
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <a class="layui-btn search_btn" data-type="reload">搜索</a>
        </div>
        @*<div class="layui-inline">
            <a class="layui-btn layui-btn-warm code_btn" style="display:none;">导出</a>
        </div>*@
    </form>
</blockquote>
<table id="managerList" lay-filter="managerList"></table>
<script type="text/html" id="managerListBar">
    {{#  if(d.State === 1){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="queryResult">查看结果</a>
    {{#  } else{ }}
    <span>-</span>

    {{#  }}}
</script>
<script type="text/html" id="State">
    {{#  if(d.State === 1){ }}
    <a class="layui-btn layui-btn-xs ">付款成功</a>
    {{#  } else if(d.State === 2){ }}
    <a class="layui-badge layui-bg-gray">审核失败</a>
    {{#  } else{ }}
    <a class="layui-btn layui-btn-xs layui-btn-danger">没有回单</a>
    {{#  }}}
</script>
<!--操作-->
@section Scripts{

    <script type="text/javascript" src="~/layui-v2.4.5/layui.js"></script>
    <script type="text/javascript" src="~/js/inoutcash/gomePayOutCashRecordList.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}